set(ProjectName "SecurityPlugin")

file(GLOB SecurityPluginCC *.cc)
file(GLOB SecurityPluginHH *.h)

add_library(SecurityPlugin STATIC
	${SecurityPluginCC}
	${SecurityPluginHH})

add_dependencies(SecurityPlugin Protocol)
add_dependencies(SecurityPlugin LogPlugin)

add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)
if(NOT MSVC)
	target_link_libraries(SecurityPlugin -static-libstdc++)
endif()
target_link_libraries(SecurityPlugin LogPlugin)
target_link_libraries(SecurityPlugin Protocol)

set_target_properties(SecurityPlugin PROPERTIES OUTPUT_NAME_DEBUG "SecurityPlugin")
set_target_properties(SecurityPlugin PROPERTIES PREFIX "")
set_target_properties(SecurityPlugin PROPERTIES 
	ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})